﻿<Window x:Class="Testing.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:auto="clr-namespace:XmlAutoComplete;assembly=XmlAutoComplete"
        Title="XmlAutoComplete Demo" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="100"/>
            <RowDefinition/>
        </Grid.RowDefinitions>

        <StackPanel>
            <StackPanel Orientation="Horizontal">
                <Label Content="XSD FILE:"/>
                <TextBox Width="150" x:Name="pathTextBox" IsReadOnly="True"/>
                <Button Content="Set XSD location" x:Name="setLocation" Click="setLocation_Click"/>
                <Label Content=" OR "/>
                <Button x:Name="demo1Button" Content="Demo1 file" Click="demo1Button_Click" ToolTipService.IsEnabled="True" ToolTip="Simple Xml schema"/>
                <Button x:Name="demo2Button" Content="Demo2 file" Click="demo2Button_Click" ToolTipService.IsEnabled="True" ToolTip="Complex Xml schema with imports from external files"/>
            </StackPanel>
            <GroupBox Header="Options">
                <StackPanel>
                    <CheckBox x:Name="autoComplete" Content="Element autoclose"/>
                    <CheckBox x:Name="namespace" Content="Append namespace into elements"/>
                    <Button x:Name="setButton" HorizontalAlignment="Left" Content=" SET OPTIONS" Width="100" Click="setButton_Click"/>
                </StackPanel>
            </GroupBox>
        </StackPanel>
        
        <GroupBox Grid.Row="1" Header="SuggestionTextBox">
        <auto:SuggestionTextBox x:Name="suggestion"/>
        </GroupBox>
    </Grid>
</Window>
